<template>
  <el-checkbox
    v-model="props.params.data.defaultx"
    :true-label="1"
    :false-label="0"
    size="large"
    @change="checkboxChange"
  />
</template>

<script setup lang="ts">
const props = withDefaults(
  defineProps<{
    params: any
  }>(),
  {
    params: {},
  }
)
let checkboxChange = () => {
  props.params.color(props.params.data)
  props.params.refreshCell()
}
</script>

<style scoped>
.currency {
  color: blue;
}
</style>